<?php
/**
 * View file: template
 *
 * @author luubk
 * @since 10-06-2012 - 00:23:54
 */
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
?>
<!doctype html>
<html lang="en">

    <head>
        <meta charset="utf-8"/>
        <title><?php echo isset($title) ? $title . ' / ' : '' ?><?php echo SITE_TITLE; ?></title>
        <script src="<?php echo $assets ?>js/kgv_cms.js" type="text/javascript"></script>
        <link rel="stylesheet" href="<?php echo $assets ?>css/layout.css" type="text/css" media="screen" />
        <!--[if lt IE 9]>
        <link rel="stylesheet" href="<?php echo $assets ?>css/ie.css" type="text/css" media="screen" />
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <?php $this->asset_files->load('js', array('_common')); ?>
        <?php $this->asset_files->load('js', $_js); ?> 
        <?php $this->asset_files->load('js', $_plugins, 'plugins'); ?>
        <script src="<?php echo $assets ?>js/hideshow.js" type="text/javascript"></script>
        <script src="<?php echo $assets ?>js/jquery.tablesorter.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="<?php echo $assets ?>js/jquery.equalHeight.js"></script>
        <script type="text/javascript">
            $(document).ready(function() 
            { 
                $(".tablesorter").tablesorter(); 
            } 
        );
            $(document).ready(function() {

                //When page loads...
                $(".tab_content").hide(); //Hide all content
                $("ul.tabs li:first").addClass("active").show(); //Activate first tab
                $(".tab_content:first").show(); //Show first tab content

                //On Click Event
                $("ul.tabs li").click(function() {

                    $("ul.tabs li").removeClass("active"); //Remove any "active" class
                    $(this).addClass("active"); //Add "active" class to selected tab
                    $(".tab_content").hide(); //Hide all tab content

                    var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                    $(activeTab).fadeIn(); //Fade in the active ID content
                    return false;
                });

            });
        </script>
        <script type="text/javascript">
            $(function(){
                $('.column').equalHeight();
            });
        </script>
        <script type="text/javascript">
            var SITEURL = '<?php echo site_url() ?>';
            var BASEURL = '<?php echo base_url() ?>';
        </script>

        <?php $this->asset_files->load('css', array('_common')); ?>
        <?php $this->asset_files->load('css', $_plugins, 'plugins'); ?>
        <?php $this->asset_files->load('css', $_css); ?>        
    </head>

    <body>
        <?php echo $tpl_header ?>
        <?php // echo $tpl_left ?>

        <section id="main" class="column">          
            <?php echo $tpl_content ?>
            <br/>
            <br/>
        </section>
        
    </body>

</html>